import axios from 'axios'

const service = axios.create({
  baseURL: 'http://localhost:8088',
  timeout: 10000,
  headers: {
    'Content-Type': 'application/json;charset=utf-8'
  }
})

// 请求的拦截器
service.interceptors.request.use(config => {
  return config
})

// 响应的拦截器
service.interceptors.response.use(res => {
  return res
})

export default service
